home *** CD-ROM | disk | FTP | other *** search
/ The CICA Windows Explosion! / The CICA Windows Explosion! - Disc 2.iso / winsock / ircii2-6.zip / SRC\IRCII-2.6\DOC\SECUREIR < prev    next >
Text File  |  1994-12-28  |  2KB  |  46 lines

  1. This version of IRCII supports the use of privileged ports. A modified
  2. server which only accepts connections from clients whose port number is
  3. below 1024 can use this to ensure the integrity of the user name field
  4. from the user@host pair.
  5.  
  6. The procedure for installing IRCII for privileged ports is slightly
  7. different. First, you should uncomment the PP_OBJS and PP_DEFS macros
  8. in Makefile. Then touch config.h and make. The value for PRIV_PORT
  9. specified in PP_DEFS is the lower bound port IRCII should try to use.
  10. In practice this value is unlikely to matter, provided it is below 1000.
  11.  
  12. If your system has the saved UID feature, you can use a more secure
  13. version of the privileged port code. See test-suid.c and Makefile for
  14. details on this.
  15.  
  16. Once you have made IRCII, and installed it, you will need to do one of
  17. two things:
  18.  
  19.     1) If you are using ircserv, make the ircserv program owned by
  20.        root, with a secure group ID. For example, you could create
  21.        the group ID irc, and have ircserv's group be irc.
  22.  
  23.        Change the mode of ircserv so that nobody other than a member
  24.        of that group (or root) can execute it. Then make irc setgid
  25.        to that group.
  26.  
  27.        eg:  chown root.irc ircserv
  28.         chmod 4710 ircserv
  29.         chgrp irc irc
  30.         chmod 2711 irc
  31.  
  32.        If there is a chance that users may be unable to execute the
  33.        ircserv process due to processes being exhausted, you can make
  34.        irc setuid->root too.
  35.  
  36.     2) If you are not using ircserv, you will need to install irc
  37.        setuid->root.
  38.  
  39.        eg:  chown root irc
  40.         chmod 4711 irc
  41.  
  42. Note: The Implementation with the ircserv process can be proven to be
  43.     secure trivially. This is not the case with the non ircserv
  44.     version, although the potential waeknesses have been carefully
  45.     analysed, and to the best of my knowledge, none exist.
  46.